package com.chixing.day06_static.singleton;

public class BankTest {
    public static void main(String[] args) {
        // Bank 只能实例化一次
//        Bank bank1 = new Bank();
//        Bank bank2 = new Bank();

        Bank bank1 =  Bank.getInstance();
        Bank bank2 =  Bank.getInstance();
        Bank bank3 =  Bank.getInstance();

        System.out.println(bank1 == bank2);
        System.out.println(bank2 == bank3);







    }
}
